package com.takwolf.libgdx.tiled;

import com.google.gson.annotations.SerializedName;

import java.util.List;
import java.util.Map;

public class Tiled {

    private int version;

    @SerializedName("width")
    private int column;

    @SerializedName("height")
    private int row;

    @SerializedName("tilewidth")
    private int tileWidth;

    @SerializedName("tileheight")
    private int tileHeight;

    private Map<String, String> properties;

    private List<Tileset> tilesets;

    private List<Layer> layers;

    public int getVersion() {
        return version;
    }

    public int getColumn() {
        return column;
    }

    public int getRow() {
        return row;
    }

    public int getTileWidth() {
        return tileWidth;
    }

    public int getTileHeight() {
        return tileHeight;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public List<Tileset> getTilesets() {
        return tilesets;
    }

    public List<Layer> getLayers() {
        return layers;
    }

    public int getWidth() {
        return column * tileWidth;
    }

    public int getHeight() {
        return row * tileHeight;
    }

}
